package com.infore.qualityControl.po;

import java.io.Serializable;
import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 集成干预检查
 * @author Cold
 *
 */
@Entity
@Table(name="INTEGRATED_INTERVENTION")
@NamedQuery(name="IntegratedIntervention.findAll", query="SELECT i FROM IntegratedIntervention i")
public class IntegratedIntervention implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ID")
	@GeneratedValue(generator = "uuidGenerator")
	@GenericGenerator(name = "uuidGenerator", strategy = "uuid") // UUID生成策略
	private String id;
	
	/** 人工采样时间 **/
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH", timezone = "GMT+8")
	@Column(name="ARTIFICIA_SAMPLING_TIME")
	private Date artificiaSamplingTime;
	
	/** 人工采样值 **/
	@Column(name="ARTIFICIA_SAMPLING_VALUE")
	private String artificiaSamplingValue;
	
	/** 自动取样时间 **/
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH", timezone = "GMT+8")
	@Column(name="AUTOMATIC_SAMPLING_TIME")
	private Date automaticSamplingTime;
	
	/** 自动取样值 **/
	@Column(name="AUTOMATIC_SAMPLING_VALUE")
	private String automaticSamplingValue;
	
	/** 误差值 **/
	@Column(name="ERROR")
	private String error;
	
	/** 指标编号 **/
	@Column(name="INDEX_CODE")
	private String indexCode;
	
	/** 指标名称 **/
	@Column(name="INDEX_NAME")
	private String indexName;
	
	/** 指标单位 **/
	@Column(name="INDEX_UNIT")
	private String indexUnit;
	
	/** 合格情况 **/
	@Column(name="QUALIFICATION")
	private String qualification;
	
	/** 测试时间 **/
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Column(name="TIME")
	private Date time;
	
	/** 技术要求 **/
	@Column(name="TECHNICAL_REQUIREMENT")
	private String technicalCequirement;
	
	/** 站点编码 **/
	@Column(name="STATION_CODE")
	private String stationCode;
	
	/** 站点名称 **/
	@Column(name="STATION_NAME")
	private String stationName;
	
	/** 流域编码 **/
	@Column(name="BASIN_CODE")
	private String basinCode;
	
	/** 流域名称 **/
	@Column(name="BASIN_NAME")
	private String basinName;
	
	/** 区域编码 **/
	@Column(name="AREA_CODE")
	private String areaCode;
	
	/** 区域名称 **/
	@Column(name="AREA_NAME")
	private String areaName;
	
	/** 运营编码 **/
	@Column(name="OPERATION_CODE")
	private String operationCode;
	
	/** 运营名称 **/
	@Column(name="OPERATION_NAME")
	private String operationName;

	public IntegratedIntervention() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	public Date getArtificiaSamplingTime() {
		return artificiaSamplingTime;
	}

	public void setArtificiaSamplingTime(Date artificiaSamplingTime) {
		this.artificiaSamplingTime = artificiaSamplingTime;
	}

	public String getArtificiaSamplingValue() {
		return this.artificiaSamplingValue;
	}

	public void setArtificiaSamplingValue(String artificiaSamplingValue) {
		this.artificiaSamplingValue = artificiaSamplingValue;
	}
	
	public Date getAutomaticSamplingTime() {
		return automaticSamplingTime;
	}

	public void setAutomaticSamplingTime(Date automaticSamplingTime) {
		this.automaticSamplingTime = automaticSamplingTime;
	}

	public String getAutomaticSamplingValue() {
		return this.automaticSamplingValue;
	}

	public void setAutomaticSamplingValue(String automaticSamplingValue) {
		this.automaticSamplingValue = automaticSamplingValue;
	}

	public String getError() {
		return this.error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public String getIndexCode() {
		return indexCode;
	}

	public void setIndexCode(String indexCode) {
		this.indexCode = indexCode;
	}

	public String getIndexName() {
		return this.indexName;
	}

	public void setIndexName(String indexName) {
		this.indexName = indexName;
	}

	public String getIndexUnit() {
		return this.indexUnit;
	}

	public void setIndexUnit(String indexUnit) {
		this.indexUnit = indexUnit;
	}

	public String getQualification() {
		return this.qualification;
	}

	public void setQualification(String qualification) {
		this.qualification = qualification;
	}

	public Date getTime() {
		return this.time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getTechnicalCequirement() {
		return technicalCequirement;
	}

	public void setTechnicalCequirement(String technicalCequirement) {
		this.technicalCequirement = technicalCequirement;
	}

	public String getStationCode() {
		return stationCode;
	}

	public void setStationCode(String stationCode) {
		this.stationCode = stationCode;
	}

	public String getStationName() {
		return stationName;
	}

	public void setStationName(String stationName) {
		this.stationName = stationName;
	}

	public String getBasinCode() {
		return basinCode;
	}

	public void setBasinCode(String basinCode) {
		this.basinCode = basinCode;
	}

	public String getBasinName() {
		return basinName;
	}

	public void setBasinName(String basinName) {
		this.basinName = basinName;
	}

	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public String getOperationCode() {
		return operationCode;
	}

	public void setOperationCode(String operationCode) {
		this.operationCode = operationCode;
	}

	public String getOperationName() {
		return operationName;
	}

	public void setOperationName(String operationName) {
		this.operationName = operationName;
	}
	
}